/*  1:   */ package com.atomikos.persistence.imp;
/*  2:   */ 
/*  3:   */ import com.atomikos.persistence.ObjectImage;
/*  4:   */ import com.atomikos.persistence.Recoverable;
/*  5:   */ import java.io.IOException;
/*  6:   */ import java.io.ObjectInput;
/*  7:   */ import java.io.ObjectOutput;
/*  8:   */ 
/*  9:   */ class StateObjectImage
/* 10:   */   implements Recoverable, ObjectImage
/* 11:   */ {
/* 12:   */   static final long serialVersionUID = 4440634956991605946L;
/* 13:   */   protected ObjectImage img_;
/* 14:   */   
/* 15:   */   public StateObjectImage() {}
/* 16:   */   
/* 17:   */   public StateObjectImage(ObjectImage image)
/* 18:   */   {
/* 19:55 */     this.img_ = image;
/* 20:   */   }
/* 21:   */   
/* 22:   */   public Object getId()
/* 23:   */   {
/* 24:60 */     return this.img_.getId();
/* 25:   */   }
/* 26:   */   
/* 27:   */   public ObjectImage getObjectImage()
/* 28:   */   {
/* 29:65 */     return this.img_;
/* 30:   */   }
/* 31:   */   
/* 32:   */   public Recoverable restore()
/* 33:   */   {
/* 34:70 */     return this.img_.restore();
/* 35:   */   }
/* 36:   */   
/* 37:   */   public void readExternal(ObjectInput in)
/* 38:   */     throws IOException, ClassNotFoundException
/* 39:   */   {
/* 40:76 */     this.img_ = ((ObjectImage)in.readObject());
/* 41:   */   }
/* 42:   */   
/* 43:   */   public void writeExternal(ObjectOutput out)
/* 44:   */     throws IOException
/* 45:   */   {
/* 46:81 */     out.writeObject(this.img_);
/* 47:   */   }
/* 48:   */ }


/* Location:           C:\myfile\mysoft\apache-maven-3.5.0-bin\apache-maven-3.5.0\myrep\com\atomikos\transactions\3.7.0\transactions-3.7.0.jar
 * Qualified Name:     com.atomikos.persistence.imp.StateObjectImage
 * JD-Core Version:    0.7.0.1
 */